package demoMod.nanaki.relics;

import basemod.abstracts.CustomRelic;
import com.badlogic.gdx.graphics.Texture;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.RelicAboveCreatureAction;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import demoMod.nanaki.NanakiMod;
import demoMod.nanaki.powers.NotePower;

public class Preempt3000 extends CustomRelic {
    public static final String ID = NanakiMod.makeID("Preempt3000");
    public static final Texture IMG = new Texture(NanakiMod.getResourcePath("relics/Preempt3000.png"));
    public static final Texture IMG_OUTLINE = new Texture(NanakiMod.getResourcePath("relics/Preempt3000_outLine.png"));

    public Preempt3000() {
        super(ID, IMG, IMG_OUTLINE, RelicTier.SHOP, LandingSound.CLINK);
    }

    @Override
    public String getUpdatedDescription() {
        return DESCRIPTIONS[0];
    }

    @Override
    public void atBattleStart() {
        this.flash();
        for (AbstractMonster monster : AbstractDungeon.getCurrRoom().monsters.monsters) {
            addToTop(new RelicAboveCreatureAction(monster, this));
            addToBot(new ApplyPowerAction(monster, AbstractDungeon.player, new NotePower(monster, 10)));
        }
    }
}
